package io.renren.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itextpdf.text.DocumentException;
import io.renren.modules.PCguanli.entity.QuestionEntity;
import io.renren.modules.app.entity.RpExamEntity;
import io.renren.modules.app.entity.UserExamEntity;
import io.renren.modules.app.user.Exam;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * ClassName: UserExamService
 * Package: io.renren.modules.app.service
 * Description:
 *
 * @Author zzy
 * @Create 2024/4/17 21:35
 * @Version 1.0
 */
public interface RpExamService extends IService<RpExamEntity> {


    boolean upsertRp(RpExamEntity rpExamEntity);
    List<RpExamEntity> getRecordsByUserId(int userId);
    Exam getRpRandomExamQuestions();
    void downloadFile(Integer num, HttpServletResponse response) throws DocumentException, IOException;
}
